import request from "@/utils/request";
import {Result} from "@/model";
import {AxiosPromise} from "axios";
import {ImageForm} from "@/api/image/types";

/**
 * 插入镜像
 * @param data 条件
 * @return id
 */
export function insertImage(data: ImageForm): AxiosPromise<Result<number>> {
    return request({
        url: "/dome/image/add",
        method: "post",
        data,
    });
}